a=0
def f():
    global a
    a += 1
    print a
    if a < 10:
        f()
        
f()
